package com.work.facade;

import java.util.List;

import javax.ejb.Local;

import com.work.dto.UserDto;
import com.work.model.User;

/**
 * The Interface UserFacade.
 *
 * @author "Mihai Roman"
 */
@Local
public interface UserFacade {

	/**
	 * Save.
	 *
	 * @param user the user
	 */
	public void save(User user);

	/**
	 * Save user.
	 *
	 * @param userDto the user dto
	 */
	public void saveUser(UserDto userDto);
	
	/**
	 * Delete.
	 *
	 * @param user the user
	 */
	public void delete(User user);
	
	/**
	 * Delete user.
	 *
	 * @param userDto the user dto
	 */
	public void deleteUser(UserDto userDto);
	
	/**
	 * Update.
	 *
	 * @param newUser the new user
	 * @return the user
	 */
	public User update(User newUser);
	
	/**
	 * Update.
	 *
	 * @param newUserDto the new user dto
	 * @return the user dto
	 */
	public UserDto update(UserDto newUserDto);
	
	List<User> findAll();
}
